from langchain.tools import tool
from langchain.pydantic_v1 import BaseModel,Field

class SearchInput(BaseModel):
    query : str = Field(description='should be a searchar query')



@tool('search-tool',args_schema=SearchInput,return_direct=True)
def search(query:str) -> str:
    """

    :param query:
    :return:
    """
    return "Langchain"

